﻿using System.Web;
using System.Web.Optimization;

namespace Software41.Tracking.Web
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/dynatree").Include(
                        "~/Scripts/jquery.dynatree-1.2.2.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));

            bundles.Add(new StyleBundle("~/Content/themes/madmin/css").Include(
               "~/Content/madmin/bootstrap/css/bootstrap.min.css",
               "~/Content/madmin/fonts/font-awesome/css/font-awesome.min.css",
               "~/Content/madmin/fonts/icomoon-pack-madmin-1.5/style.css",
               "~/Content/madmin/js/libs/google-code-prettify/prettify.css",
               "~/Content/madmin/js/libs/jquery.pageslide/jquery.pageslide.css",
               "~/Content/madmin/js/libs/jquery.tablesorter/themes/blue/style.css",
               "~/Content/madmin/js/libs/jquery.tablesorter/addons/pager/jquery.tablesorter.pager.css",
               "~/Content/madmin/styles/madminstyle.css"));

            bundles.Add(new ScriptBundle("~/bundles/scripts/madmin").Include(
                "~/Content/madmin/bootstrap/js/bootstrap.min.js",
                "~/Content/madmin/js/madmin.js",
                //"~/Content/madmin/js/application.js",
                "~/Content/madmin/js/libs/flot/excanvas.min.js",
                "~/Content/madmin/js/libs/flot/jquery.flot.js",
                "~/Content/madmin/js/libs/flot/jquery.flot.resize.min.js",
                "~/Content/madmin/js/libs/flot/jquery.flot.pie.min.js",
                "~/Content/madmin/js/libs/google-code-prettify/prettify.js",
                "~/Content/madmin/js/libs/jquery.tablesorter/jquery.tablesorter.min.js",
                "~/Content/madmin/js/libs/jquery.pageslide/jquery.pageslide.min.js"));
            //"~/Content/madmin/js/demo-area-chart.js",
            //"~/Content/madmin/js/demo-dynamic-chart.js",
            //"~/Content/madmin/js/demo-pie-chart.js"



            bundles.IgnoreList.Clear();
        }
    }
}